package VdpSoapControllerwsdl;

public class VdpSoapControllerPortTypeProxy implements VdpSoapControllerwsdl.VdpSoapControllerPortType {
  private String _endpoint = null;
  private VdpSoapControllerwsdl.VdpSoapControllerPortType vdpSoapControllerPortType = null;
  
  public VdpSoapControllerPortTypeProxy() {
    _initVdpSoapControllerPortTypeProxy();
  }
  
  public VdpSoapControllerPortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initVdpSoapControllerPortTypeProxy();
  }
  
  private void _initVdpSoapControllerPortTypeProxy() {
    try {
      vdpSoapControllerPortType = (new VdpSoapControllerwsdl.VdpSoapControllerServiceLocator()).getVdpSoapControllerPort();
      if (vdpSoapControllerPortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)vdpSoapControllerPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)vdpSoapControllerPortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (vdpSoapControllerPortType != null)
      ((javax.xml.rpc.Stub)vdpSoapControllerPortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public VdpSoapControllerwsdl.VdpSoapControllerPortType getVdpSoapControllerPortType() {
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType;
  }
  
  public VdpSoapControllerwsdl.VDPAccess getAccessToken(java.lang.String api_code, java.lang.String client_id) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.getAccessToken(api_code, client_id);
  }
  
  public VdpSoapControllerwsdl.VDPConfirmation openWork(java.lang.String token, java.lang.String client_id) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.openWork(token, client_id);
  }
  
  public VdpSoapControllerwsdl.VDPConfirmation closeWork(java.lang.String token, java.lang.String client_id) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.closeWork(token, client_id);
  }
  
  public VdpSoapControllerwsdl.VDPConfirmation validateVIN(java.lang.String token, java.lang.String client_id, java.lang.String vin, int status) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.validateVIN(token, client_id, vin, status);
  }
  
  public VdpSoapControllerwsdl.VDPConfirmation cancelWork(java.lang.String token, java.lang.String client_id) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.cancelWork(token, client_id);
  }
  
  public VdpSoapControllerwsdl.VDPReturn processInfo(java.lang.String token, java.lang.String client_id, VdpSoapControllerwsdl.VDPRowData[] info) throws java.rmi.RemoteException{
    if (vdpSoapControllerPortType == null)
      _initVdpSoapControllerPortTypeProxy();
    return vdpSoapControllerPortType.processInfo(token, client_id, info);
  }
  
  
}